<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/devidepackage',
    'namespace' => 'Frieza\\Modules\\Devidepackage\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    //打标签分包相关
    $router->get('/index/{step}', 'DevidePackageController@index');//过滤内容列表
    $router->post('/index/receivedpackage', 'DevidePackageController@receivePackage');//领取任务
    $router->get('/index/continuepackage/{package_id}', 'OperatePackageController@continuePackage');//领取任务
    $router->post('/index/submitpackage', 'DevidePackageController@submitPackage');//提交任务
    $router->get('/index/continuepackage/{package_id}/{note_id}', 'OperatePackageController@admRemarkPop');//pic备注弹窗
    $router->put('/index/continuepackage/{package_id}/{note_id}/{id}', 'OperatePackageController@editPicRemark');//pic保存备注
    $router->put('/index/{tab_id}/{id}', 'DevidePackageController@editRemark');//pic保存备注
    $router->post('/index/reeditpackage', 'DevidePackageController@reEditPackage');//任务打回修改
    $router->post('/index/finishpackage', 'DevidePackageController@finishPackage');//任务标记完成
    $router->get('/exportdata', 'DevidePackageController@exportData');//导出数据
    $router->post('/index/repairpackage', 'DevidePackageController@repairPackage');//任务标记完成
    $router->put('/index/{tab_id}/', 'DevidePackageController@collocation');//配置

    //note打标签-分包
    $router->get('/pack-label/{step}', 'NoteLabelPackage@index');//分包的首页
    $router->put('/pack-label/{step}', 'NoteLabelPackage@collocation');//配置项修改
    $router->put('/pack-label/7/{id}', 'NoteLabelPackage@addRemark');//整包备注
    $router->put('/pack-label/8/{id}', 'NoteLabelPackage@addRemark');//整包备注
    $router->post('/receive-note-package', 'NoteLabelPackage@receivedpackage');//领取任务
    $router->post('/submit-note-package', 'NoteLabelPackage@submitPackage');//提交任务
    $router->post('/note-label/reeditpackage', 'NoteLabelPackage@reEditPackage');//打回修改
    $router->post('/note-label/finishPackage', 'NoteLabelPackage@finishPackage');//标记完成
    $router->get('/note-label/{pack_id}', 'PhotoNoteLabelController@index');//note审核界面
    $router->put('/note-label/{pack_id}/{id}', 'PhotoNoteLabelController@addRemark');//note审核界面-单个问题备注
    $router->get('/note-labels/down-excel', 'NoteLabelPackage@downExcel');//统计信息-导出
    //获取所有的内容标签分类
    $router->get('/labelList', 'PhotoNoteLabelController@labelList');
    $router->post('/labelSubmit/{pack_id}', 'PhotoNoteLabelController@labelSubmit');
    $router->get('/note-label-log', 'PhotoNoteLabelController@noteLabelLog');
});